<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
    <?php $this->load->view('header/css.php'); ?>
    <?php $this->load->view('header/js.php'); ?>
    
    <!-- special addition for feeds -->
    <link rel="stylesheet" href="<?php echo base_url(); ?>css/gfeeds.css" type="text/css" media="screen, projection" />
    <script type="text/javascript" src="http://www.google.com/jsapi?key=ABQIAAAA72aIBU-jivI3QWYWl1n3UhTRRNzy0ezZlWGH3Coy6GSJuwH9UBTWAmC3k2RvvHn7aYVPX9b_JFivRQ"></script>
    <script type="text/javascript" src="<?php echo base_url().'js/jquery.gfeed.js'?>"></script>

	<script type="text/javascript"> 
	    // when the DOM is ready, convert the feed anchors into feed content 
		$(document).ready(function() { 
			if (window.google)  {
	            $('a.feed').gFeed( { target: '#feeds', tabs: true } ); 
			}

	        $(document).ready(function() {
	            $('#error-container').hide();
	            var elems = $('#error-container ul').clone();
	            elems.removeClass('prepend-1');
	            elems.removeClass('span-15');
	            
	            //console.log(elems);
	            if (elems.length > 0) {
	                $.pnotify({ 
	                    pnotify_title: "Errors found",
	                    pnotify_text: elems, 
	                    pnotify_type: 'error', 
	                    pnotify_hide: false 
	                });
	                $('.ui-pnotify-text').show();
	            }

	            $('#info-container').hide();
                var elems = $('#info-container ul').clone();
                elems.removeClass('prepend-1');
                elems.removeClass('span-15');
                
                //console.log(elems);
                if (elems.length > 0) {
                	$.pnotify({
                	    pnotify_title: 'Information',
                	    pnotify_text: elems,
                	    pnotify_type: 'info', 
                	});
                    $('.ui-pnotify-text').show();
                }
	        });
	    }); 
	</script> 
    
    <title><?=lang('welcome.Welcome')?></title>
</head>
<body class="">
<div id="page">
    <div id="header" class="clearfix">
            <div id="headerimg">
                <div  class="container" style="text-align: right">
                    <span class="span-2"><img src="/images/favl_logo_small.gif" style="margin-top: -5px" /></span>
                    <h1><?=lang('welcome.Welcome')?></h1>
                </div>
            </div>
        <div id="navigation">
            <div class="container">
	            <ul id="nav">
	                <li class="active"><a href="/"><?=lang('welcome.Welcome')?></a> &nbsp; // &nbsp; </li>
	                <li><a href="http://www.favl.org.ar">FAVL</a></li>
	            </ul>
            </div>
        </div>
    </div><!-- /#header -->
    
    <div id="main">
        <div class="container">
            <div class="span-17 colborder last" id="content">
                <p>&nbsp;</p>
	            <?php if (isset($messages)) echo $messages; ?>
				<div id="feeds" class="span-16 last"> 
				    <a class="feed" href="http://cnd.favl.info/modules/leonardo/rss.php?country=AR&olcScore=0&c=10"><?=lang('welcome.Latest_Flights_in_CND')?></a> 
				</div>
            </div>
	        <div class="span-6 prepend-1 last" id="sidebar">
	            <div id="" class="last box">
	                <h3 class="section-title"><?=lang('login.Login')?></h3>
	                <?php echo form_open('login/email'); ?>
	                <p>
	                    <label for="username"><?=lang('login.EMail')?>: </label> 
	                    <?php echo form_input('email',set_value('email')); ?>
	                </p>
	                <p>
	                    <label for="password"><?=lang('login.Password')?>: </label> <?php echo form_password('password'); ?>
	                </p>
	                <p><input type="submit" name="action" value="login" alt="test"><?lang('login.Login')?></input></p>
	                <?php echo form_close(); ?>
                </div>
                <div class="last prepend-top">
                    <h3 class="section-title"><?php echo anchor('signup',lang('login.Register'), ''); ?></h3>
                </div>
            </div>
        </div>
    </div> <!-- /#main -->
<?php $this->load->view('footer/standard');?>
